/*
 * QueryOrderResultResponse.java
 * business
 *
 * Created by ChenTao on 2017/2/28.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Order;
import com.yidiandao.business.data.bean.ShareEntity;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/**
 * 订单提交成功后，查询订单信息的Response
 */
public class QueryOrderResultResponse extends BaseResponse {

    /**
     * 支付成功
     */
    public static final int PAY_SUCCESS = 1;

    /**
     * 支付失败
     */
    public static final int PAY_FAILED = 0;

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("order_pay_id")
        private String orderPayId;

        /**
         * 支付状态
         */
        @SerializedName("pay_status")
        private int payStatus;

        @SerializedName("pay_title")
        private String payTitle;

        @SerializedName("pay_name")
        private String payName;

        @SerializedName("pay_amount")
        private String payAmount;

        @SerializedName("consignee")
        private String consignee;

        @SerializedName("address")
        private String address;

        /**
         * 其他付款方式信息
         */
        @SerializedName("order_list")
        private List<Order> orderList;

        @SerializedName("share")
        private ShareEntity share;

        /**
         * 银行转账信息
         */
        @SerializedName("pay_desc")
        private List<PayDesc> payDesc;

        @SerializedName("pay_button")
        private int payButton;

        @SerializedName("url")
        private String url;

        /**
         * 银行转账 付款识别码
         */
        @SerializedName("bank_pay_sn")
        private List<String> bankPayCodes;

        /**
         * 银行转账
         */
        @SerializedName("bank_pay_sn_desc")
        private String bankPayDesc;

        public List<String> getBankPayCodes() {
            return bankPayCodes;
        }

        public void setBankPayCodes(List<String> bankPayCodes) {
            this.bankPayCodes = bankPayCodes;
        }

        public String getBankPayDesc() {
            return bankPayDesc;
        }

        public void setBankPayDesc(String bankPayDesc) {
            this.bankPayDesc = bankPayDesc;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public ShareEntity getShare() {
            return share;
        }

        public void setShare(ShareEntity share) {
            this.share = share;
        }

        public List<PayDesc> getPayDesc() {
            return payDesc;
        }

        public void setPayDesc(List<PayDesc> payDesc) {
            this.payDesc = payDesc;
        }

        public String getOrderPayId() {
            return orderPayId;
        }

        public void setOrderPayId(String orderPayId) {
            this.orderPayId = orderPayId;
        }

        public int getPayStatus() {
            return payStatus;
        }

        public void setPayStatus(int payStatus) {
            this.payStatus = payStatus;
        }

        public String getPayTitle() {
            return payTitle;
        }

        public void setPayTitle(String payTitle) {
            this.payTitle = payTitle;
        }

        public String getPayName() {
            return payName;
        }

        public void setPayName(String payName) {
            this.payName = payName;
        }

        public String getPayAmount() {
            return payAmount;
        }

        public void setPayAmount(String payAmount) {
            this.payAmount = payAmount;
        }

        public String getConsignee() {
            return consignee;
        }

        public void setConsignee(String consignee) {
            this.consignee = consignee;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public List<Order> getOrderList() {
            return orderList;
        }

        public void setOrderList(List<Order> orderList) {
            this.orderList = orderList;
        }

        public int getPayButton() {
            return payButton;
        }

        public void setPayButton(int payButton) {
            this.payButton = payButton;
        }

        public static class PayDesc {

            @SerializedName("name")
            private String name;

            @SerializedName("desc")
            private String desc;

            private boolean alignLeft;

            public boolean isAlignLeft() {
                return alignLeft;
            }

            public void setAlignLeft(boolean alignLeft) {
                this.alignLeft = alignLeft;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }
        }
    }
}
